package com.example.controller;

import com.example.annotation.GlobalInterceptor;
import com.example.entity.dto.TokenUserInfoDTO;
import com.example.entity.po.GroupInfo;
import com.example.entity.vo.ResponseVO;
import com.example.entity.query.GroupInfoQuery;

import com.example.service.GroupInfoService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description:群组信息 业务接口
 * 
 * @Date:2024/07/25
 */
@RestController
@RequestMapping("/group")
public class GroupInfoController extends ABaseController {

	@Resource
	private GroupInfoService groupInfoService;


	@RequestMapping("/saveGroup")
	@GlobalInterceptor
	public ResponseVO saveGroup(HttpServletRequest request, String groupId,
								@NotEmpty String groupName,
								String groupNotice,
								@NotEmpty Integer joinType,
								MultipartFile avatarFile,
								MultipartFile avatarCover) {

		TokenUserInfoDTO tokenUserInfoDTO = getTokenUserInfo(request);


		return getSuccessResponseVO(null);
	}

}